<ion-view view-title="邀请码">
	<ion-nav-buttons side="right">
			<span ng-click="goHelp()" class="icon icon-my-help" style="color:orangered;font-size:30px;"></span>
	</ion-nav-buttons>
	<ion-content style="background-color:#f5f5f5;">
		
		<div style="margin-top:10px;">
			<div class="list" style="margin-bottom: 0px;background-color:white;">
				<div class="item item-input item-button-right">
				    <span class="input-label">我的邀请码</span>
				    <input type="text" value="{{inviteData.myInvite}}">
				    <button class="button" style="top:6px;background-color: #D1D3D6;font-size:14px;" ng-click="copyInviteCode('{{inviteData.myInvite}}')">
						复制
				    </button>
				</div>
				<div class="item item-input item-button-right">
				    <span class="input-label" ng-if="inviteData.byInvite==null||inviteData.byInvite==''">未绑定</span>
				    <span class="input-label" ng-if="inviteData.byInvite!=null&&inviteData.byInvite!=''">已绑定</span>
				    <span ng-if="inviteData.byInvite!=null&&inviteData.byInvite!=''">{{inviteData.byInvite}}</span>
				    <input ng-if="inviteData.byInvite==null||inviteData.byInvite==''" type="text" ng-model="iData.byInvite">
				    <button ng-click="bandCode(iData.byInvite)" class="button" style="top:6px;background-color: #D1D3D6;font-size:14px;" ng-if="inviteData.byInvite==null||inviteData.byInvite==''">
						绑定
				    </button>
				</div>
			</div>
			<div class="list" style="margin-top: 10px;display: none;">
				<div class="item item-input item-button-right">
				    <span class="input-label">推广链接</span>
				    <input type="text" value="{{inviteData.url}}">
				    <button ng-click="copyInviteUrl('{{inviteData.url}}')" class="button" style="top:6px;background-color: #D1D3D6;font-size:14px;">
						复制
				    </button>
				</div>
			</div>
			<div class="list" style="margin-top: 10px;">
				<a class="item item-icon-right" href="#/tab/my/inviteList">
					<div style="float: left;width: 50%;">邀请收益列表</div>
					<i class="icon ion-ios-arrow-right"></i>
				</a>
			</div>
    	</div>

	</ion-content>
</ion-view>